/**  
* @Title: BookPunishDaoImpl.java  
* @Package com.ssm.demo.dao.impl.bookpunish  
* @Description: TODO(用一句话描述该文件做什么)  
* @author jing Lei 
* @date 2018年12月31日  
* @version V1.0  
*/  

package com.ssm.demo.dao.impl.bookpunish;
import java.util.List;
import javax.annotation.PostConstruct;
import javax.annotation.Resource;
import org.springframework.stereotype.Repository;
import com.ssm.demo.dao.bookpunish.IBookPunishDao;
import com.ssm.demo.dao.impl.BaseIdaoImpl;
import com.ssm.demo.dao.mapper.bookpunish.IBookPunishMapper;
import com.ssm.demo.model.BookPunish;

/**  
* @ClassName: BookPunishDaoImpl  
* @Description: TODO(这里用一句话描述这个类的作用)  
* @author jing Lei  
* @date 2018年12月31日  
*    
*/
@Repository
public class BookPunishDaoImpl extends BaseIdaoImpl<BookPunish> implements IBookPunishDao{
	@Resource
    private IBookPunishMapper iBookPunishMapper;
	
    @PostConstruct
    private void postconstruct() {
		baseMapper = iBookPunishMapper;
	}
	/**
	* <p>Title: findByBookId</p>  
	* <p>Description: </p>  
	* @param bookId 书籍id
	* @return  
	* @see com.ssm.demo.dao.bookpunish.IBookPunishDao#findByBookId(int)  
	*/  
	
	@Override
	public List<BookPunish> findByBookId(int bookId) {
		return iBookPunishMapper.findByBookId(bookId);
	}

	/**
	* <p>Title: findByStudentId</p>  
	* <p>Description: </p>  
	* @param studentId 学生id
	* @return  
	* @see com.ssm.demo.dao.bookpunish.IBookPunishDao#findByStudentId(int)  
	*/  
	
	@Override
	public List<BookPunish> findByStudentId(int studentId) {
		return iBookPunishMapper.findByStudentId(studentId);
	}

	/**
	* <p>Title: findByMangerId</p>  
	* <p>Description: </p>  
	* @param mangerId 管理员id
	* @return  
	* @see com.ssm.demo.dao.bookpunish.IBookPunishDao#findByMangerId(int)  
	*/  
	
	@Override
	public List<BookPunish> findByManagerId(int managerId) {
		return iBookPunishMapper.findByManagerId(managerId);
	}
}
